package lk.icta.core.entity;

import lk.icta.common.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Supun Viraj Rathnayaka
 */

@Entity
@Table(schema = "ELAND_RAIL")
public class ArrearsHistoryRecord extends BaseEntity {

    @Column
    private int year;

    @Column
    private boolean activeRecord;

    @Column(columnDefinition="Decimal(15,2) default '0.00'")
    private double arrearsAmount;

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public boolean isActiveRecord() {
        return activeRecord;
    }

    public void setActiveRecord(boolean activeRecord) {
        this.activeRecord = activeRecord;
    }

    public double getArrearsAmount() {
        return arrearsAmount;
    }

    public void setArrearsAmount(double arrearsAmount) {
        this.arrearsAmount = arrearsAmount;
    }

}
